import React from 'react';
import { Switch, Route, HashRouter } from 'react-router-dom';
import routes from '../constants/routes.json';
import App from '../containers/App';
import Demo from '../containers/demo'

export default function Routes(_prop: any) {
  console.log(_prop)
  return (
    <HashRouter>
      <Switch>
        <Route exact path="/" component={Demo}>
        </Route>
        <Route exact path={routes.RESOURCES} component={App}  ></Route>
      </Switch>
    </HashRouter>
  );
}
